From: Florian Müllner Date: Fri, 24 Jun 2016 16:10:28 +0000 (+0200) Subject: workspacesDisplay: Cancel click when panning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~830 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=02bad8e92bd963a991a6e04ffbf137395c071a20;p=gnome-shell.git workspacesDisplay: Cancel click when panning When switching between workspaces via panning, we don't want to leave the overview when we end up on an empty workspace. https://bugzilla.gnome.org/show_bug.cgi?id=766883 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 6c66f3e61..e5166615c 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -436,6 +436,7 @@ const WorkspacesDisplay = new Lang.Class({ return true; })); panAction.connect('gesture-cancel', Lang.bind(this, function() { + clickAction.release(); for (let i = 0; i < this._workspacesViews.length; i++) this._workspacesViews[i].endSwipeScroll(); }));